# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-locale-maketext-fuzzy
pkgver=0.11
pkgrel=2
pkgdesc="Locale::Maketext::Fuzzy perl module"
url="https://metacpan.org/release/Locale-Maketext-Fuzzy/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Locale-Maketext-Fuzzy-$pkgver.tar.gz
	Locale-Maketext-Fuzzy-0.11-Fix-building-on-Perl-without-dot-in-INC.patch
	"

builddir="$srcdir"/Locale-Maketext-Fuzzy-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="81a199c120a812604e106f083a6380dd15d61afd81ac5299d1a0d70b5f44743184234d3fc7c9c0c420a3fa0c1caf3e55d1427441cfec6df979291b67836d3c98  Locale-Maketext-Fuzzy-0.11.tar.gz
07472faeb675790541e902c7e3b85e2524a16c41b585b029aa00a427985389a67e3b6adb8d80b1126db0c7de0a01bf99f59201d802c5ead4827dba1f3c248c35  Locale-Maketext-Fuzzy-0.11-Fix-building-on-Perl-without-dot-in-INC.patch"
